﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class NPCTask:NPC
    {
        private string TaskInfo;
       
        public NPCTask(string name,NPCType type,string taskInfo):base(name,type) 
        {
            this.TaskInfo = taskInfo;

        }
        public override void Speak()
        {
            Console.WriteLine("{0}:你好,{1}",base.Name,this.TaskInfo);
        }
    }
}
